import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/index.vue'),
      children: [
        {
          path: 'visual',
          name: 'visual',
          component: () => import('../views/visual/index.vue')
        },
        {
          path: 'sellerpage',
          name: 'sellerpage',
          component: () => import('../views/visual/SellerPage.vue')
        },
        {
          path: 'trendpage',
          name: 'trendpage',
          component: () => import('../views/visual/TrendPage.vue')
        },
        {
          path: 'mappage',
          name: 'mappage',
          component: () => import('../views/visual/MapPage.vue')
        },
        {
          path: 'rankpage',
          name: 'rankpage',
          component: () => import('../views/visual/RankPage.vue')
        },
        {
          path: 'hotpage',
          name: 'hotpage',
          component: () => import('../views/visual/HotPage.vue')
        },
        {
          path: 'stockpage',
          name: 'stockpage',
          component: () => import('../views/visual/StockPage.vue')
        }
      ]
    }
  ]
})

export default router
